//
//  SecondModel.m
//  ProjectA
//
//  Created by lanouhn on 15/5/26.
//  Copyright (c) 2015年 lanouhn. All rights reserved.
//

#import "SecondModel.h"
/*

 @property (nonatomic ,retain)NSString *title;
 @property (nonatomic ,retain)NSString *imgUrl;
 @property (nonatomic ,retain)NSArray *cats;
 */
@implementation SecondModel
- (void)dealloc{
    [_cats release];
    [_title release];
    [_imgUrl release];
    [super dealloc];
}
+ (instancetype)secondModelWithDic:(NSDictionary *)dic{
    SecondModel *model = [[SecondModel alloc]init];
    model.title = dic[@"title"];
    model.imgUrl = dic[@"img"];
    model.cats = dic[@"cats"];
    model.ID = dic[@"id"];
    return [model autorelease];
}
@end
